Modal — Design Reference
bioluminescent compute in near-black
Source: https://modal.com
Theme: dark
Category: Infrastructure
Mood: dark, technical, precise, minimal, typographic
Captured: 2026-11-27
Overview
Near-black surfaces carry crisp, grotesque headlines and a single radioactive green that appears only where it matters: one word in the headline, link accents, and the halo of hex-dot particle renders. Everything else is grayscale — the page reads as an instrument panel that happens to be beautifully typeset, with generous vertical air between sections and cards that sit a half-step above the ground rather than floating.
It is achieved with ABC Diatype at medium weight for display (60px/1.0, -0.01em) over an Inter/DM Mono supporting cast, a four-step near-black surface ramp (#040804 ground, #10120f cards, #131412/#1a1c19 raised), hairline borders rendered as 1px inset rgba(255,255,255,0.05) rather than solid strokes, 7px card radii against fully pill (48px) buttons and controls, and a white-ish #e3e5e1 primary CTA that inverts the page. Imagery is procedural: hexagonal dot-matrix sculptures glowing green, diagram line art, and product UI screenshots in dark chrome. A single inverted light band (#daded7) near the testimonials breaks the darkness.
Tokens — Colors
| Name |
Value |
Token |
Role |
| Carbon Ground |
#040804 |
--color-bg-ground |
Page background behind hero, sections and footer — the dominant surface by far |
| Panel Black |
#10120f |
--color-surface-card |
Default card and panel fill; also the text colour on light CTA fills |
| Riser Grey |
#1a1c19 |
--color-surface-raised |
Floating UI mock cards and tooltips that sit above panels, paired with a drop shadow |
| Elevated Slate |
#232323 |
--color-surface-elevated |
Docs dialogs, popovers and the active sidebar item background |
| Bone White |
#e3e5e1 |
--color-text-primary |
Headlines and primary button fill (inverted CTA) |
| Ash |
#a8aba6 |
--color-text-muted |
Body copy, nav links at rest, captions and logo-wall marks |
| Graphite Line |
#464646 |
--color-border-strong |
Visible 1px borders on inputs and dividers in dense UI |
| Reactor Green |
#7fee64 |
--color-accent-bold |
Hover/active accent, accent fills, focus glow and the brightest particle highlights |
| Signal Green |
#6ac345 |
--color-accent |
Accent text at rest — the highlighted headline word, eyebrows, inline doc links |
| Moss Tint |
#1d231c |
--color-accent-surface |
Tinted accent background for selected chips and success chips |
| Linen Band |
#daded7 |
--color-surface-inverse |
Inverted light section for testimonials and the customer logo grid |
| Flare Coral |
#fb7455 |
--color-semantic-highlight |
Accent dots in diagram illustrations and editorial tags |
| Alarm Red |
#f87171 |
--color-danger |
Destructive/error text in app and docs surfaces |
| Amber Caution |
#d18e50 |
--color-warning |
Warning text in docs callouts and status chips |
Semantic roles
| Role |
Value |
| background |
#040804 |
| surface |
#10120f |
| surface raised |
#1a1c19 |
| border |
rgba(255,255,255,0.05) |
| text |
#e3e5e1 |
| text muted |
#a8aba6 |
| primary |
#e3e5e1 |
| primary text |
#10120f |
| accent |
#7fee64 |
| success |
#6ac345 |
| warning |
#d18e50 |
| danger |
#f87171 |
Tokens — Typography
- Display: ABC Diatype (400, 500, 700) — fallbacks: Inter, Helvetica Neue, Arial, sans-serif. Brand grotesque used for headlines AND most body copy on marketing pages; medium (500) for all headings, regular (400) for prose.
- Body: Inter (400, 500) — fallbacks: system-ui, Segoe UI, sans-serif. Fallback/UI face; drives the docs app (H1 36px/1.25, -0.025em) and small interface labels.
- Mono: DM Mono (400) — fallbacks: Fira Mono, ui-monospace, SFMono-Regular, monospace. Numbers, pricing tokens, inline metrics; Fira Mono handles code blocks in docs.
| Role |
Size |
Line height |
Weight |
Letter spacing |
Family |
| Display |
60px |
1.0 |
500 |
-0.01em |
display |
| H1 |
45px |
1.07 |
500 |
-0.01em |
display |
| H2 |
38px |
1.16 |
500 |
-0.01em |
display |
| Quote / H3 large |
28px |
1.29 |
400 |
0 |
display |
| Lead |
18px |
1.33 |
400 |
0 |
display |
| Body |
16px |
1.5 |
400 |
0 |
display |
| UI / Nav |
15px |
32px |
400 |
0 |
display |
| Mono data |
16px |
1.5 |
400 |
0 |
mono |
| Caption |
14px |
1.4 |
400 |
0 |
body |
Tokens — Spacing & Layout
- Base unit: 4px
- Density: comfortable
- Container max width: 1344px
- Section gap: 144px
- Card padding: 40px
- Scale: 4px, 6px, 8px, 12px, 16px, 20px, 24px, 32px, 48px, 64px, 80px, 144px
Tokens — Radius
| Element |
Value |
| Card / panel |
7px |
| Floating UI mock |
10px |
| Chip, tag, code inline |
4px |
| Hairline tick / micro element |
3px |
| Button, input, toggle, nav pill |
48px (full pill) |
Tokens — Shadows
| Name |
Value |
Usage |
| Hairline inset (dark) |
inset 0 0 0 1px rgba(255,255,255,0.05) |
Secondary/ghost buttons, outlined cards — borders are drawn as insets, not strokes |
| Hairline inset (light) |
inset 0 0 0 1px rgba(0,0,0,0.05) |
Primary white buttons and cards sitting on the inverted light band |
| Float |
0 1px 3px rgba(4,8,4,0.5), 0 2px 32px rgba(4,8,4,0.6) |
Product UI mock cards hovering over section backgrounds |
| Accent glow |
0 0 8px #7fee64 |
Rare focus/active glow on accent indicators and live status dots |
Components
Primary button (Get started / Sign up) (button)
| Property |
Value |
| background |
#e3e5e1 |
| color |
#10120f |
| border |
none |
| radius |
48px |
| padding |
6px 16px |
| font size |
16px |
| font weight |
500 |
| shadow |
inset 0 0 0 1px rgba(0,0,0,0.05) |
| hover |
background #ffffff; no lift, no scale |
36px tall pill that inverts the page; the single loudest element in any viewport. Never tinted green.
Secondary button (Contact us) (button)
| Property |
Value |
| background |
rgba(255,255,255,0.05) |
| color |
#e3e5e1 |
| border |
none |
| radius |
48px |
| padding |
6px 16px |
| font size |
16px |
| font weight |
400 |
| shadow |
inset 0 0 0 1px rgba(255,255,255,0.05) |
| hover |
background rgba(255,255,255,0.09) |
Sits immediately right of the primary with an 8px gap; same 36px height, lighter weight.
Nav / segmented pill (button)
| Property |
Value |
| background |
transparent |
| color |
#a8aba6 |
| border |
none |
| radius |
48px |
| padding |
0 12px |
| font size |
15px |
| font weight |
400 |
| shadow |
none |
| hover |
color #e3e5e1; selected state fills rgba(255,255,255,0.05) with inset hairline |
Used for header links and the Per hour / Per second toggle (32px tall; the selected segment gets the hairline fill).
Email input (input)
| Property |
Value |
| background |
transparent |
| color |
#e3e5e1 |
| border |
1px solid #464646 |
| radius |
48px |
| padding |
6px 16px |
| font size |
16px |
| font weight |
400 |
| shadow |
none |
| hover |
border #747474; focus border #dadada |
38px tall pill field; placeholder in #a8aba6. The only place a solid 1px border is used in marketing layouts.
Feature card (card)
| Property |
Value |
| background |
#10120f |
| color |
#a8aba6 |
| border |
1px solid rgba(255,255,255,0.05) |
| radius |
7px |
| padding |
40px |
| font size |
16px |
| font weight |
400 |
| shadow |
none |
| hover |
border rgba(255,255,255,0.12); no translate |
Dominant content container (~646px wide in a 2-up grid). Heading 18–38px in #e3e5e1, body in #a8aba6. Flat — depth comes from the surface step, not shadow.
Floating UI mock (card)
| Property |
Value |
| background |
#1a1c19 |
| color |
#e3e5e1 |
| border |
1px solid rgba(255,255,255,0.05) |
| radius |
10px |
| padding |
16px |
| font size |
14px |
| font weight |
400 |
| shadow |
0 1px 3px rgba(4,8,4,0.4), 0 2px 32px rgba(4,8,4,0.5) |
| hover |
none |
Simulated product panels (charts, dashboards) layered inside feature cards; mono numerals in DM Mono.
Sticky header (nav)
| Property |
Value |
| background |
transparent |
| color |
#e3e5e1 |
| border |
none |
| radius |
0 |
| padding |
0 32px |
| font size |
16px |
| font weight |
400 |
| shadow |
none |
| hover |
link colour #ffffff |
65px tall, sticky, no border or backdrop blur: wordmark left, centred link cluster, Log in + Sign up pill right.
Accent eyebrow / inline accent (badge)
| Property |
Value |
| background |
transparent |
| color |
#6ac345 |
| border |
none |
| radius |
4px |
| padding |
0 |
| font size |
16px |
| font weight |
500 |
| shadow |
none |
| hover |
color #7fee64 |
Section eyebrows ('Customers'), the highlighted trailing phrase in headlines, and docs links. Green is type-only on dark surfaces; tinted chips use #1d231c behind #7fee64.
Layout
Centred 1344px max-width column with a sticky 65px transparent header. Hero is centre-aligned: display headline, 18px lead clamped to ~2 lines, two pills side by side, then a full-width row of four glowing hex-dot renders, then a muted logo wall with a small 'Trusted by' label pinned left behind a vertical rule. Below the fold, sections alternate between 2-up card grids (text column + product mock column) and 3-up diagram columns, separated by ~144px of air. One inverted #daded7 band carries testimonials and the customer logo grid, breaking the near-black run; the footer returns to black with a 4–6 column link matrix.
Imagery
Procedural, not photographic: hexagonal dot-matrix sculptures rendered in gradient green (#6ac345 → #7fee64 → pale yellow-green) with soft bloom against pure black; thin line-art diagrams in white strokes with occasional #fb7455 and blue node dots; dark-chrome screenshots of the product dashboard with mono numerals and small green sparklines. Customer logos are flattened to a single muted grey (#a8aba6) on dark, black on the light band. People appear only inside embedded customer-video thumbnails.
Motion
Restrained and functional: particle renders animate continuously (dots pulsing/rotating) as the only ambient motion; everything else is a 120–180ms colour or background-opacity transition on hover. Cards do not lift or scale; the logo marquee scrolls horizontally at a slow constant rate; accordion nav items on mobile expand with a simple height transition.
Responsive
Below ~900px the header collapses to wordmark plus a hamburger; tapping it opens a full-screen black overlay panel with left-aligned 24px links stacked as rows separated by hairline #272727 dividers, Product and Resources carrying chevrons that expand accordion sub-menus in place, and a two-up row of full-width Log in (rgba(255,255,255,0.05) pill) and Sign up (#e3e5e1 pill) buttons docked at the bottom. The hero keeps its centred alignment but drops to ~36px display type over three lines, the lead wraps to four, and the two CTAs stay side by side as auto-width pills rather than going full-bleed. The four hex-dot renders reflow from a 4-column row into a 2×2 grid; logo walls become 3-per-row grids. Horizontal padding tightens to ~20–24px, card padding from 40px to 20–24px, and section gaps from 144px to roughly 64–80px.
Do
- Keep green as a highlight only — one word in a headline, link text, icon states, and the particle art; never a green button fill.
- Draw borders as inset box-shadows (inset 0 0 0 1px rgba(255,255,255,0.05)) so edges stay hairline-thin on dark.
- Pair pill geometry (48px) on all interactive controls with soft 7px rectangles on cards — the contrast is the signature.
- Use the surface ramp #040804 → #10120f → #1a1c19 → #232323 for depth instead of shadows.
- Set headlines in ABC Diatype 500 with -0.01em tracking and line-height 1.0–1.16; keep body at 400 and 1.33–1.5.
- Mute all third-party logos to one grey tone and let them scroll in a single slim band.
- Use DM Mono for prices, metrics and ids so numeric columns align.
Don't
- Don't add a backdrop-blurred or bordered header bar — the nav floats transparent over the ground.
- Don't use pure #000 or pure #fff for large areas; the ground is #040804 and the lightest text is #e3e5e1.
- Don't apply green glows to text or buttons; the only glow (0 0 8px #7fee64) belongs to status indicators and the particle art.
- Don't introduce gradients on surfaces or CTAs — gradients exist solely inside the generated hex-dot imagery.
- Don't let cards lift, scale or shadow on hover; change border opacity instead.
- Don't mix heading faces: ABC Diatype for marketing, Inter only inside the docs/app shell.
- Don't compress section rhythm below ~64px on mobile or ~144px on desktop — the air is part of the tone.
Agent prompt
Build a near-black infrastructure site: ground #040804, cards #10120f, raised panels #1a1c19, elevated/popovers #232323, with one inverted #daded7 band for testimonials. Type is ABC Diatype (fallback Inter) — display 60px/1.0 weight 500 tracking -0.01em, H1 45px/1.07, H2 38px/1.16, lead 18px/1.33, body 16px/1.5 weight 400 in #a8aba6, headings in #e3e5e1; DM Mono 16px for prices and metrics; Inter 36px/1.25 -0.025em for docs headings. Accent is a single radioactive green: #6ac345 at rest, #7fee64 on hover/active, used only for one highlighted phrase per headline, eyebrows, links, icons and tinted chips on #1d231c — never as a button fill. Primary CTA is a white pill: background #e3e5e1, text #10120f, radius 48px, padding 6px 16px, 36px tall, inset 0 0 0 1px rgba(0,0,0,0.05); secondary is the same pill with rgba(255,255,255,0.05) fill, #e3e5e1 text and inset 0 0 0 1px rgba(255,255,255,0.05). Inputs are 38px pills, transparent with a 1px #464646 border, focus border #dadada. Cards are 7px radius, 40px padding, #10120f with a 1px rgba(255,255,255,0.05) hairline, flat (no shadow); only simulated product panels float with 0 1px 3px rgba(4,8,4,0.4), 0 2px 32px rgba(4,8,4,0.5) at 10px radius. Layout: 1344px max width, 4px base unit (gaps 6/8/12/16/24/32/48px), ~144px between sections, 65px transparent sticky header with centred nav links at 15px #a8aba6 and a right-side Log in + Sign up pair. Imagery = glowing hexagonal dot-matrix renders in green gradients on black plus thin white line diagrams with occasional #fb7455 nodes; logos flattened to grey. Motion is limited to 150ms colour transitions and the ambient particle animation. On mobile, collapse to a hamburger that opens a full-screen black menu with 24px links divided by #272727 hairlines and docked full-width Log in / Sign up pills.
CSS custom properties
/* Modal — CSS custom properties. Generated from style.json */
:root {
/* Palette */
--color-bg-ground: #040804; /* Page background behind hero, sections and footer — the dominant surface by far */
--color-surface-card: #10120f; /* Default card and panel fill; also the text colour on light CTA fills */
--color-surface-raised: #1a1c19; /* Floating UI mock cards and tooltips that sit above panels, paired with a drop shadow */
--color-surface-elevated: #232323; /* Docs dialogs, popovers and the active sidebar item background */
--color-text-primary: #e3e5e1; /* Headlines and primary button fill (inverted CTA) */
--color-text-muted: #a8aba6; /* Body copy, nav links at rest, captions and logo-wall marks */
--color-border-strong: #464646; /* Visible 1px borders on inputs and dividers in dense UI */
--color-accent-bold: #7fee64; /* Hover/active accent, accent fills, focus glow and the brightest particle highlights */
--color-accent: #6ac345; /* Accent text at rest — the highlighted headline word, eyebrows, inline doc links */
--color-accent-surface: #1d231c; /* Tinted accent background for selected chips and success chips */
--color-surface-inverse: #daded7; /* Inverted light section for testimonials and the customer logo grid */
--color-semantic-highlight: #fb7455; /* Accent dots in diagram illustrations and editorial tags */
--color-danger: #f87171; /* Destructive/error text in app and docs surfaces */
--color-warning: #d18e50; /* Warning text in docs callouts and status chips */
/* Semantic roles */
--background: #040804;
--surface: #10120f;
--surface-raised: #1a1c19;
--border: rgba(255,255,255,0.05);
--text: #e3e5e1;
--text-muted: #a8aba6;
--primary: #e3e5e1;
--primary-text: #10120f;
--accent: #7fee64;
--success: #6ac345;
--warning: #d18e50;
--danger: #f87171;
/* Typography */
--font-display: 'ABC Diatype', Inter, 'Helvetica Neue', Arial, sans-serif;
--font-body: Inter, system-ui, 'Segoe UI', sans-serif;
--font-mono: 'DM Mono', 'Fira Mono', ui-monospace, SFMono-Regular, monospace;
--text-display: 60px;
--text-display--line-height: 1.0;
--text-display--letter-spacing: -0.01em;
--text-display--font-weight: 500;
--text-h1: 45px;
--text-h1--line-height: 1.07;
--text-h1--letter-spacing: -0.01em;
--text-h1--font-weight: 500;
--text-h2: 38px;
--text-h2--line-height: 1.16;
--text-h2--letter-spacing: -0.01em;
--text-h2--font-weight: 500;
--text-quote-h3-large: 28px;
--text-quote-h3-large--line-height: 1.29;
--text-quote-h3-large--letter-spacing: 0;
--text-quote-h3-large--font-weight: 400;
--text-lead: 18px;
--text-lead--line-height: 1.33;
--text-lead--letter-spacing: 0;
--text-lead--font-weight: 400;
--text-body: 16px;
--text-body--line-height: 1.5;
--text-body--letter-spacing: 0;
--text-body--font-weight: 400;
--text-ui-nav: 15px;
--text-ui-nav--line-height: 32px;
--text-ui-nav--letter-spacing: 0;
--text-ui-nav--font-weight: 400;
--text-mono-data: 16px;
--text-mono-data--line-height: 1.5;
--text-mono-data--letter-spacing: 0;
--text-mono-data--font-weight: 400;
--text-caption: 14px;
--text-caption--line-height: 1.4;
--text-caption--letter-spacing: 0;
--text-caption--font-weight: 400;
/* Spacing */
--space-1: 4px;
--space-2: 6px;
--space-3: 8px;
--space-4: 12px;
--space-5: 16px;
--space-6: 20px;
--space-7: 24px;
--space-8: 32px;
--space-9: 48px;
--space-10: 64px;
--space-11: 80px;
--space-12: 144px;
--container: 1344px;
--section-gap: 144px;
/* Radius */
--radius-card-panel: 7px;
--radius-floating-ui-mock: 10px;
--radius-chip-tag-code-inline: 4px;
--radius-hairline-tick-micro-element: 3px;
--radius-button-input-toggle-nav-pill: 48px (full pill);
/* Shadows */
--shadow-hairline-inset-dark: inset 0 0 0 1px rgba(255,255,255,0.05);
--shadow-hairline-inset-light: inset 0 0 0 1px rgba(0,0,0,0.05);
--shadow-float: 0 1px 3px rgba(4,8,4,0.5), 0 2px 32px rgba(4,8,4,0.6);
--shadow-accent-glow: 0 0 8px #7fee64;
}
Tailwind v4 theme
/* Modal — Tailwind CSS v4 theme. Import after tailwindcss: @import "tailwindcss"; then paste this block. */
@theme {
--color-bg-ground: #040804;
--color-surface-card: #10120f;
--color-surface-raised: #1a1c19;
--color-surface-elevated: #232323;
--color-text-primary: #e3e5e1;
--color-text-muted: #a8aba6;
--color-border-strong: #464646;
--color-accent-bold: #7fee64;
--color-accent: #6ac345;
--color-accent-surface: #1d231c;
--color-surface-inverse: #daded7;
--color-semantic-highlight: #fb7455;
--color-danger: #f87171;
--color-warning: #d18e50;
--color-background: #040804;
--color-surface: #10120f;
--color-surface-raised: #1a1c19;
--color-border: rgba(255,255,255,0.05);
--color-text: #e3e5e1;
--color-text-muted: #a8aba6;
--color-primary: #e3e5e1;
--color-primary-text: #10120f;
--color-accent: #7fee64;
--color-success: #6ac345;
--color-warning: #d18e50;
--color-danger: #f87171;
--font-display: 'ABC Diatype', Inter, 'Helvetica Neue', Arial, sans-serif;
--font-body: Inter, system-ui, 'Segoe UI', sans-serif;
--font-mono: 'DM Mono', 'Fira Mono', ui-monospace, SFMono-Regular, monospace;
--text-display: 60px;
--text-display--line-height: 1.0;
--text-display--letter-spacing: -0.01em;
--text-display--font-weight: 500;
--text-h1: 45px;
--text-h1--line-height: 1.07;
--text-h1--letter-spacing: -0.01em;
--text-h1--font-weight: 500;
--text-h2: 38px;
--text-h2--line-height: 1.16;
--text-h2--letter-spacing: -0.01em;
--text-h2--font-weight: 500;
--text-quote-h3-large: 28px;
--text-quote-h3-large--line-height: 1.29;
--text-quote-h3-large--letter-spacing: 0;
--text-quote-h3-large--font-weight: 400;
--text-lead: 18px;
--text-lead--line-height: 1.33;
--text-lead--letter-spacing: 0;
--text-lead--font-weight: 400;
--text-body: 16px;
--text-body--line-height: 1.5;
--text-body--letter-spacing: 0;
--text-body--font-weight: 400;
--text-ui-nav: 15px;
--text-ui-nav--line-height: 32px;
--text-ui-nav--letter-spacing: 0;
--text-ui-nav--font-weight: 400;
--text-mono-data: 16px;
--text-mono-data--line-height: 1.5;
--text-mono-data--letter-spacing: 0;
--text-mono-data--font-weight: 400;
--text-caption: 14px;
--text-caption--line-height: 1.4;
--text-caption--letter-spacing: 0;
--text-caption--font-weight: 400;
--radius-card-panel: 7px;
--radius-floating-ui-mock: 10px;
--radius-chip-tag-code-inline: 4px;
--radius-hairline-tick-micro-element: 3px;
--radius-button-input-toggle-nav-pill: 48px (full pill);
--shadow-hairline-inset-dark: inset 0 0 0 1px rgba(255,255,255,0.05);
--shadow-hairline-inset-light: inset 0 0 0 1px rgba(0,0,0,0.05);
--shadow-float: 0 1px 3px rgba(4,8,4,0.5), 0 2px 32px rgba(4,8,4,0.6);
--shadow-accent-glow: 0 0 8px #7fee64;
--container-site: 1344px;
}
Theme tokens — light + dark
The shadcn-named layer DevDojo Sites speaks (bg-background, text-foreground, bg-primary, rounded-medium…). Paste into site.css after @import "tailwindcss" to restyle any site in this look.
/* Modal — DevDojo theme tokens (light + dark). Generated from style.json. */
/* Drop into site.css after @import "tailwindcss": bg-background, text-foreground, bg-primary, border-border, rounded-medium… all read these. Dark mode: captured; the light half is estimated — the site is dark by default. Add class="dark" to <html> for the site's native look. */
@custom-variant dark (&:where(.dark, .dark *));
:root {
color-scheme: light;
--background: #daded7;
--foreground: #10120f;
--card: #eef2eb;
--card-foreground: #10120f;
--popover: #ffffff;
--popover-foreground: #10120f;
--primary: #10120f;
--primary-foreground: #e3e5e1;
--secondary: #c4c7c1;
--secondary-foreground: #10120f;
--muted: #c4c7c1;
--muted-foreground: #4b4d4a;
--accent: #9efb87;
--accent-foreground: #10120f;
--destructive: #b72121;
--destructive-foreground: #ffffff;
--border: rgba(0,0,0,0.08);
--input: rgba(0,0,0,0.16);
--ring: #6ac345;
--radius-small: 4px;
--radius-medium: 7px;
--radius-large: 10px;
--radius: var(--radius-medium);
--font-display: 'ABC Diatype', Inter, 'Helvetica Neue', Arial, sans-serif;
--font-body: Inter, system-ui, 'Segoe UI', sans-serif;
--font-mono: 'DM Mono', 'Fira Mono', ui-monospace, SFMono-Regular, monospace;
}
.dark {
color-scheme: dark;
--background: #040804;
--foreground: #e3e5e1;
--card: #10120f;
--card-foreground: #e3e5e1;
--popover: #232323; /* estimated */
--popover-foreground: #e3e5e1; /* estimated */
--primary: #e3e5e1;
--primary-foreground: #10120f;
--secondary: #1a1c19;
--secondary-foreground: #e3e5e1;
--muted: #131412;
--muted-foreground: #a8aba6;
--accent: #1d231c;
--accent-foreground: #7fee64;
--destructive: #f87171;
--destructive-foreground: #10120f;
--border: rgba(255,255,255,0.05);
--input: #464646;
--ring: #7fee64; /* estimated */
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--radius-small: var(--radius-small);
--radius-medium: var(--radius-medium);
--radius-large: var(--radius-large);
--font-display: var(--font-display);
--font-body: var(--font-body);
--font-mono: var(--font-mono);
}
Modal — Style Reference
bioluminescent compute in near-black
Theme: dark · Mood: dark, technical, precise, minimal, typographic
Near-black surfaces carry crisp, grotesque headlines and a single radioactive green that appears only where it matters: one word in the headline, link accents, and the halo of hex-dot particle renders. Everything else is grayscale — the page reads as an instrument panel that happens to be beautifully typeset, with generous vertical air between sections and cards that sit a half-step above the ground rather than floating.
Tokens — Colors
| Name |
Value |
Token |
Role |
| Carbon Ground |
#040804 |
--bg-ground |
Page background behind hero, sections and footer — the dominant surface by far |
| Panel Black |
#10120f |
--surface-card |
Default card and panel fill; also the text colour on light CTA fills |
| Riser Grey |
#1a1c19 |
--surface-raised |
Floating UI mock cards and tooltips that sit above panels, paired with a drop shadow |
| Elevated Slate |
#232323 |
--surface-elevated |
Docs dialogs, popovers and the active sidebar item background |
| Bone White |
#e3e5e1 |
--text-primary |
Headlines and primary button fill (inverted CTA) |
| Ash |
#a8aba6 |
--text-muted |
Body copy, nav links at rest, captions and logo-wall marks |
| Graphite Line |
#464646 |
--border-strong |
Visible 1px borders on inputs and dividers in dense UI |
| Reactor Green |
#7fee64 |
--accent-bold |
Hover/active accent, accent fills, focus glow and the brightest particle highlights |
| Signal Green |
#6ac345 |
--accent |
Accent text at rest — the highlighted headline word, eyebrows, inline doc links |
| Moss Tint |
#1d231c |
--accent-surface |
Tinted accent background for selected chips and success chips |
| Linen Band |
#daded7 |
--surface-inverse |
Inverted light section for testimonials and the customer logo grid |
| Flare Coral |
#fb7455 |
--semantic-highlight |
Accent dots in diagram illustrations and editorial tags |
| Alarm Red |
#f87171 |
--danger |
Destructive/error text in app and docs surfaces |
| Amber Caution |
#d18e50 |
--warning |
Warning text in docs callouts and status chips |
Tokens — Typography
- Display: ABC Diatype (Inter, Helvetica Neue, Arial, sans-serif) — weights 400/500/700
- Body: Inter (system-ui, Segoe UI, sans-serif) — weights 400/500
- Mono: DM Mono (Fira Mono, ui-monospace, SFMono-Regular, monospace) — weights 400
Tokens — Radius
| Element |
Value |
| Card / panel |
7px |
| Floating UI mock |
10px |
| Chip, tag, code inline |
4px |
| Hairline tick / micro element |
3px |
| Button, input, toggle, nav pill |
48px (full pill) |
Do
- Keep green as a highlight only — one word in a headline, link text, icon states, and the particle art; never a green button fill.
- Draw borders as inset box-shadows (inset 0 0 0 1px rgba(255,255,255,0.05)) so edges stay hairline-thin on dark.
- Pair pill geometry (48px) on all interactive controls with soft 7px rectangles on cards — the contrast is the signature.
- Use the surface ramp #040804 → #10120f → #1a1c19 → #232323 for depth instead of shadows.
- Set headlines in ABC Diatype 500 with -0.01em tracking and line-height 1.0–1.16; keep body at 400 and 1.33–1.5.
- Mute all third-party logos to one grey tone and let them scroll in a single slim band.
- Use DM Mono for prices, metrics and ids so numeric columns align.
Don't
- Don't add a backdrop-blurred or bordered header bar — the nav floats transparent over the ground.
- Don't use pure #000 or pure #fff for large areas; the ground is #040804 and the lightest text is #e3e5e1.
- Don't apply green glows to text or buttons; the only glow (0 0 8px #7fee64) belongs to status indicators and the particle art.
- Don't introduce gradients on surfaces or CTAs — gradients exist solely inside the generated hex-dot imagery.
- Don't let cards lift, scale or shadow on hover; change border opacity instead.
- Don't mix heading faces: ABC Diatype for marketing, Inter only inside the docs/app shell.
- Don't compress section rhythm below ~64px on mobile or ~144px on desktop — the air is part of the tone.
{
"$name": "Modal",
"$source": "https://modal.com",
"$theme": "dark",
"$generated": "inspiration library",
"color": {
"bg-ground": {
"$type": "color",
"$value": "#040804",
"$description": "Page background behind hero, sections and footer — the dominant surface by far"
},
"surface-card": {
"$type": "color",
"$value": "#10120f",
"$description": "Default card and panel fill; also the text colour on light CTA fills"
},
"surface-raised": {
"$type": "color",
"$value": "#1a1c19",
"$description": "Floating UI mock cards and tooltips that sit above panels, paired with a drop shadow"
},
"surface-elevated": {
"$type": "color",
"$value": "#232323",
"$description": "Docs dialogs, popovers and the active sidebar item background"
},
"text-primary": {
"$type": "color",
"$value": "#e3e5e1",
"$description": "Headlines and primary button fill (inverted CTA)"
},
"text-muted": {
"$type": "color",
"$value": "#a8aba6",
"$description": "Body copy, nav links at rest, captions and logo-wall marks"
},
"border-strong": {
"$type": "color",
"$value": "#464646",
"$description": "Visible 1px borders on inputs and dividers in dense UI"
},
"accent-bold": {
"$type": "color",
"$value": "#7fee64",
"$description": "Hover/active accent, accent fills, focus glow and the brightest particle highlights"
},
"accent": {
"$type": "color",
"$value": "#6ac345",
"$description": "Accent text at rest — the highlighted headline word, eyebrows, inline doc links"
},
"accent-surface": {
"$type": "color",
"$value": "#1d231c",
"$description": "Tinted accent background for selected chips and success chips"
},
"surface-inverse": {
"$type": "color",
"$value": "#daded7",
"$description": "Inverted light section for testimonials and the customer logo grid"
},
"semantic-highlight": {
"$type": "color",
"$value": "#fb7455",
"$description": "Accent dots in diagram illustrations and editorial tags"
},
"danger": {
"$type": "color",
"$value": "#f87171",
"$description": "Destructive/error text in app and docs surfaces"
},
"warning": {
"$type": "color",
"$value": "#d18e50",
"$description": "Warning text in docs callouts and status chips"
}
},
"role": {
"background": {
"$type": "color",
"$value": "#040804"
},
"surface": {
"$type": "color",
"$value": "#10120f"
},
"surface_raised": {
"$type": "color",
"$value": "#1a1c19"
},
"border": {
"$type": "color",
"$value": "rgba(255,255,255,0.05)"
},
"text": {
"$type": "color",
"$value": "#e3e5e1"
},
"text_muted": {
"$type": "color",
"$value": "#a8aba6"
},
"primary": {
"$type": "color",
"$value": "#e3e5e1"
},
"primary_text": {
"$type": "color",
"$value": "#10120f"
},
"accent": {
"$type": "color",
"$value": "#7fee64"
},
"success": {
"$type": "color",
"$value": "#6ac345"
},
"warning": {
"$type": "color",
"$value": "#d18e50"
},
"danger": {
"$type": "color",
"$value": "#f87171"
}
},
"fontFamily": {
"display": {
"$type": "fontFamily",
"$value": [
"ABC Diatype",
"Inter",
"Helvetica Neue",
"Arial",
"sans-serif"
],
"$description": "Brand grotesque used for headlines AND most body copy on marketing pages; medium (500) for all headings, regular (400) for prose."
},
"body": {
"$type": "fontFamily",
"$value": [
"Inter",
"system-ui",
"Segoe UI",
"sans-serif"
],
"$description": "Fallback/UI face; drives the docs app (H1 36px/1.25, -0.025em) and small interface labels."
},
"mono": {
"$type": "fontFamily",
"$value": [
"DM Mono",
"Fira Mono",
"ui-monospace",
"SFMono-Regular",
"monospace"
],
"$description": "Numbers, pricing tokens, inline metrics; Fira Mono handles code blocks in docs."
}
},
"typography": {
"display": {
"$type": "typography",
"$value": {
"fontFamily": "{fontFamily.display}",
"fontSize": "60px",
"lineHeight": "1.0",
"fontWeight": 500,
"letterSpacing": "-0.01em"
}
},
"h1": {
"$type": "typography",
"$value": {
"fontFamily": "{fontFamily.display}",
"fontSize": "45px",
"lineHeight": "1.07",
"fontWeight": 500,
"letterSpacing": "-0.01em"
}
},
"h2": {
"$type": "typography",
"$value": {
"fontFamily": "{fontFamily.display}",
"fontSize": "38px",
"lineHeight": "1.16",
"fontWeight": 500,
"letterSpacing": "-0.01em"
}
},
"quote-h3-large": {
"$type": "typography",
"$value": {
"fontFamily": "{fontFamily.display}",
"fontSize": "28px",
"lineHeight": "1.29",
"fontWeight": 400,
"letterSpacing": "0"
}
},
"lead": {
"$type": "typography",
"$value": {
"fontFamily": "{fontFamily.display}",
"fontSize": "18px",
"lineHeight": "1.33",
"fontWeight": 400,
"letterSpacing": "0"
}
},
"body": {
"$type": "typography",
"$value": {
"fontFamily": "{fontFamily.display}",
"fontSize": "16px",
"lineHeight": "1.5",
"fontWeight": 400,
"letterSpacing": "0"
}
},
"ui-nav": {
"$type": "typography",
"$value": {
"fontFamily": "{fontFamily.display}",
"fontSize": "15px",
"lineHeight": "32px",
"fontWeight": 400,
"letterSpacing": "0"
}
},
"mono-data": {
"$type": "typography",
"$value": {
"fontFamily": "{fontFamily.mono}",
"fontSize": "16px",
"lineHeight": "1.5",
"fontWeight": 400,
"letterSpacing": "0"
}
},
"caption": {
"$type": "typography",
"$value": {
"fontFamily": "{fontFamily.body}",
"fontSize": "14px",
"lineHeight": "1.4",
"fontWeight": 400,
"letterSpacing": "0"
}
}
},
"spacing": {
"1": {
"$type": "dimension",
"$value": "4px"
},
"2": {
"$type": "dimension",
"$value": "6px"
},
"3": {
"$type": "dimension",
"$value": "8px"
},
"4": {
"$type": "dimension",
"$value": "12px"
},
"5": {
"$type": "dimension",
"$value": "16px"
},
"6": {
"$type": "dimension",
"$value": "20px"
},
"7": {
"$type": "dimension",
"$value": "24px"
},
"8": {
"$type": "dimension",
"$value": "32px"
},
"9": {
"$type": "dimension",
"$value": "48px"
},
"10": {
"$type": "dimension",
"$value": "64px"
},
"11": {
"$type": "dimension",
"$value": "80px"
},
"12": {
"$type": "dimension",
"$value": "144px"
}
},
"radius": {
"card-panel": {
"$type": "dimension",
"$value": "7px"
},
"floating-ui-mock": {
"$type": "dimension",
"$value": "10px"
},
"chip-tag-code-inline": {
"$type": "dimension",
"$value": "4px"
},
"hairline-tick-micro-element": {
"$type": "dimension",
"$value": "3px"
},
"button-input-toggle-nav-pill": {
"$type": "dimension",
"$value": "48px (full pill)"
}
},
"shadow": {
"hairline-inset-dark": {
"$type": "shadow",
"$value": "inset 0 0 0 1px rgba(255,255,255,0.05)",
"$description": "Secondary/ghost buttons, outlined cards — borders are drawn as insets, not strokes"
},
"hairline-inset-light": {
"$type": "shadow",
"$value": "inset 0 0 0 1px rgba(0,0,0,0.05)",
"$description": "Primary white buttons and cards sitting on the inverted light band"
},
"float": {
"$type": "shadow",
"$value": "0 1px 3px rgba(4,8,4,0.5), 0 2px 32px rgba(4,8,4,0.6)",
"$description": "Product UI mock cards hovering over section backgrounds"
},
"accent-glow": {
"$type": "shadow",
"$value": "0 0 8px #7fee64",
"$description": "Rare focus/active glow on accent indicators and live status dots"
}
},
"component": {
"primary-button-get-started-sign-up": {
"kind": "button",
"background": "#e3e5e1",
"color": "#10120f",
"border": "none",
"radius": "48px",
"padding": "6px 16px",
"font_size": "16px",
"font_weight": 500,
"shadow": "inset 0 0 0 1px rgba(0,0,0,0.05)",
"hover": "background #ffffff; no lift, no scale",
"notes": "36px tall pill that inverts the page; the single loudest element in any viewport. Never tinted green."
},
"secondary-button-contact-us": {
"kind": "button",
"background": "rgba(255,255,255,0.05)",
"color": "#e3e5e1",
"border": "none",
"radius": "48px",
"padding": "6px 16px",
"font_size": "16px",
"font_weight": 400,
"shadow": "inset 0 0 0 1px rgba(255,255,255,0.05)",
"hover": "background rgba(255,255,255,0.09)",
"notes": "Sits immediately right of the primary with an 8px gap; same 36px height, lighter weight."
},
"nav-segmented-pill": {
"kind": "button",
"background": "transparent",
"color": "#a8aba6",
"border": "none",
"radius": "48px",
"padding": "0 12px",
"font_size": "15px",
"font_weight": 400,
"shadow": "none",
"hover": "color #e3e5e1; selected state fills rgba(255,255,255,0.05) with inset hairline",
"notes": "Used for header links and the Per hour / Per second toggle (32px tall; the selected segment gets the hairline fill)."
},
"email-input": {
"kind": "input",
"background": "transparent",
"color": "#e3e5e1",
"border": "1px solid #464646",
"radius": "48px",
"padding": "6px 16px",
"font_size": "16px",
"font_weight": 400,
"shadow": "none",
"hover": "border #747474; focus border #dadada",
"notes": "38px tall pill field; placeholder in #a8aba6. The only place a solid 1px border is used in marketing layouts."
},
"feature-card": {
"kind": "card",
"background": "#10120f",
"color": "#a8aba6",
"border": "1px solid rgba(255,255,255,0.05)",
"radius": "7px",
"padding": "40px",
"font_size": "16px",
"font_weight": 400,
"shadow": "none",
"hover": "border rgba(255,255,255,0.12); no translate",
"notes": "Dominant content container (~646px wide in a 2-up grid). Heading 18–38px in #e3e5e1, body in #a8aba6. Flat — depth comes from the surface step, not shadow."
},
"floating-ui-mock": {
"kind": "card",
"background": "#1a1c19",
"color": "#e3e5e1",
"border": "1px solid rgba(255,255,255,0.05)",
"radius": "10px",
"padding": "16px",
"font_size": "14px",
"font_weight": 400,
"shadow": "0 1px 3px rgba(4,8,4,0.4), 0 2px 32px rgba(4,8,4,0.5)",
"hover": "none",
"notes": "Simulated product panels (charts, dashboards) layered inside feature cards; mono numerals in DM Mono."
},
"sticky-header": {
"kind": "nav",
"background": "transparent",
"color": "#e3e5e1",
"border": "none",
"radius": "0",
"padding": "0 32px",
"font_size": "16px",
"font_weight": 400,
"shadow": "none",
"hover": "link colour #ffffff",
"notes": "65px tall, sticky, no border or backdrop blur: wordmark left, centred link cluster, Log in + Sign up pill right."
},
"accent-eyebrow-inline-accent": {
"kind": "badge",
"background": "transparent",
"color": "#6ac345",
"border": "none",
"radius": "4px",
"padding": "0",
"font_size": "16px",
"font_weight": 500,
"shadow": "none",
"hover": "color #7fee64",
"notes": "Section eyebrows ('Customers'), the highlighted trailing phrase in headlines, and docs links. Green is type-only on dark surfaces; tinted chips use #1d231c behind #7fee64."
}
}
}